package com.feng.boot.datajpa.repository;

import com.feng.boot.datajpa.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Lee
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    /**
     * 根据 Id 查询 User
     * @param id
     * @return
     */
    User getUserById(Integer id);

}
